package com.project.light.entity;

import lombok.Data;

import javax.persistence.*;
import java.io.Serializable;
import java.util.Date;

@Data
@Table(name = "B_Building")
public class Building implements Serializable {
    private static final long serialVersionUID = 1L;

    /**
     * ID
     */
    @Id
    @Column(name = "ID")
    private Integer id;

    /**
     * 地区ID
     */
    @Column(name = "AreaID")
    private Integer areaID;

    /**
     * 大类
     */
    @Column(name = "Type")
    private Integer type;

    /**
     * 小类
     */
    @Column(name = "Quality")
    private Integer quality;

    /**
     * 建筑名称
     */
    @Column(name = "BuildingName")
    private String buildingName;

    /**
     * 地址
     */
    @Column(name = "Address")
    private String address;

    @Column(name = "PropertyUnit")
    private String propertyUnit;

    @Column(name = "PropertyUnitContact")
    private String propertyUnitContact;

    @Column(name = "PropertyUnitContactPhone")
    private String propertyUnitContactPhone;

    @Column(name = "OwnerUnit")
    private String ownerUnit;

    @Column(name = "OwnerUnitContact")
    private String ownerUnitContact;

    @Column(name = "OwnerUnitContactPhone")
    private String ownerUnitContactPhone;

    /**
     * 创建时间
     */
    @Column(name = "CreatedDate")
    private Date createdDate;

    /**
     * 创建人用户id
     */
    @Column(name = "CreatedUser")
    private String createdUser;

    /**
     * 修改日期
     */
    @Column(name = "UpdatedDate")
    private Date updatedDate;

    /**
     * 修改人用户id
     */
    @Column(name = "UpdatedUser")
    private String updatedUser;

    /**
     * 删除标识
     */
    @Column(name = "DeleteFlag")
    private Integer deleteFlag;
}
